package com.moshang.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moshang.blog.entity.TbArticleInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @program: blog
 * @description: ${description}
 * @author: moshang
 * @create: 2018-12-10 14:03
 **/
@Mapper
public interface TbArticleInfoMapper extends BaseMapper<TbArticleInfo> {
    /**
     * 点赞数缓存到数据库
     */
    void saveCountDb(Integer articleId, Integer count);

    List<Map> findCountBySort();
}
